package com.dys.entity;

import java.util.Date;

/**
 * @className: com.dys.entity.Person
 * @description: 映射jdbc_test_db库中的person表
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/09/12 下午10:44
 */
public class Person {
    private Integer id;

    private String name;

    private Integer age;

    private Date dateOfBirth;

    private String email;

    private String address;

    public Person() {
    }

    public Person(Integer id, String name, Integer age, Date dateOfBirth, String email, String address) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.dateOfBirth = dateOfBirth;
        this.email = email;
        this.address = address;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getDateOfBirth() {
        return dateOfBirth;
    }

    public void setDateOfBirth(Date bornDate) {
        this.dateOfBirth = bornDate;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", bornDate=" + dateOfBirth +
                ", email='" + email + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
